package com.matrix.java.chap_04;

import java.util.Scanner;

/*
    生成车牌号码
 */
public class Ex4_25 {
    public static void main(String[] args) {
        //1.生成三个大写字母
        int c1;
        int c2;
        int c3;
        do {
            c1 = (int) (Math.random()*96);
            c2 = (int) (Math.random()*96);
            c3 = (int) (Math.random()*96);
        }while (c1<65&&c2<65&&c3<65);
        //2.生成随机的四位数
        int number1 = (int) (Math.random() * 10);
        int number2 = (int) (Math.random() * 10);
        int number3 = (int) (Math.random() * 10);
        int number4 = (int) (Math.random() * 10);
        System.out.printf("%c%c%c%d%d%d%d",c1,c2,c3,number1,number2,number3,number4);
    }
}
